﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="webSearchAll.aspx.cs" Inherits="webZP" Title="科技成果超市---搜索结果" %>

<%@ Register Src="UserControl/RecommendInfo.ascx" TagName="RecommendInfo" TagPrefix="uc2" %>

<%@ Register Src="UserControl/InfoSearch.ascx" TagName="InfoSearch" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script runat="server">
    public static string NoHtm(string requeststr)
    {  
        System.Text.RegularExpressions.Regex reghtm = new System.Text.RegularExpressions.Regex(@"<.+?>");
        requeststr = reghtm.Replace(requeststr, "");
        requeststr = requeststr.Replace("&nbsp;", "");
        requeststr = requeststr.Replace("<br>;", "");
        requeststr = requeststr.Replace("<p>", "");
        requeststr = requeststr.Replace("</p>", "");
        requeststr = requeststr.Replace("\n", "");
        requeststr = requeststr.Replace("\r", "");
        //这个去的才够彻底啊

        string x = requeststr.Trim().Length > 100 ? requeststr.Trim().Substring(0, 100) + "......" : requeststr.Trim();
        return x;
     
    }
</script>
    <table background="images/beijing.gif" bgcolor="#ffffff" cellpadding="0" cellspacing="0"
        width="778">
        <tr>
            <td align="center" style="height: 1016px" valign="top" width="216">
                <table cellpadding="0" cellspacing="0" width="59">
                    <tr>
                        <td valign="top">
                            <img height="28" src="images/left1.GIF" width="213" /></td>
                    </tr>
                    <tr>
                        <td align="center" bgcolor="#fffef6" height="166" valign="middle">
                            <uc2:RecommendInfo ID="RecommendInfo1" runat="server" />
                        </td>
                    </tr>
                    <tr style="font-family: 宋体">
                        <td>
                            <img height="30" src="images/left2.gif" width="213" /></td>
                    </tr>
                    <tr style="font-family: 宋体">
                        <td background="../images/xiaobei.gif" height="105">
                            <uc1:InfoSearch ID="InfoSearch1" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <img height="29" src="images/left3.gif" width="214" /></td>
                    </tr>
                    <tr>
                        <td align="center">
                            <table cellpadding="0" cellspacing="0" width="194" style="height: 145px; vertical-align:top; margin-right: 1px;">
                                <tr>
                                    <td align="left" class="huise" width="194"style="font-size: 12px; color:Red">
                                                    <span class="hongcu"><strong>科技管理部门</strong></span><br />
                                                    <br />
                                                    联系地址：****市东*大街亚****广<br />
                                                    场座2205室<br />
                                                    联系电话：885**86 88**4275<br />
                                                    邮政编码：1**000</td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            <td align="center"  color: #000000; height: 1016px" valign="top" class="txt">
             <table cellpadding="0" cellspacing="0" width="10">
                    <tr>
                        <td>
<img border="0" height="28" src="../images/sss.gif" width:565px/></td>
                    </tr>
                    
                    <tr style="color: #000000">
                        <td height="0">
                        </td>
                    </tr>
                </table>
                <table cellpadding="0" cellspacing="0" style="color: #000000" width="10">
                   <tr style="color: #000000">
                        <td height="0">
            
            
              
                            <asp:DataList ID="dlFree" runat="server" style="font-weight: 700" 
                                Height="376px" Width="507px">
                                <ItemTemplate>
                                      <table align="center" cellpadding="0" cellspacing="0"">
                              
                              <tr>
                                
                                <td class="huise"  style="word-break:break-all; overflow:hidden; width:541px">
                                            
                                            <span class="shenlancu"><img src="images/gif-0370.jpg" alt="" width="22" height="7" />『<%# DataBinder.Eval(Container.DataItem,"type") %>』<img src="images/j0826.gif" width="11" height="9" /></span>
                                             <span
                                                    class="banhui">
                                                      <a class="huise" style=" color:Red;text-decoration: underline"
              href="../ShowLeaguerInfo.aspx?id=<%#DataBinder.Eval(Container.DataItem,"id") %>"><%# DataBinder.Eval(Container.DataItem,"title") %></a>&nbsp;&nbsp;&nbsp;&nbsp;[
                                                        <%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem,"date")).ToShortDateString() %>
                                                        ]
                                                    <br />
                                                </span><span class="banhui">&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                                                 
      
                                                   <%#
                                                  NoHtm(DataBinder.Eval(Container.DataItem, "info").ToString()) 
                                                  %>

                                                   </td>
                               
                              </tr>
                             
                                    
                                    
                                  <tr><td><img src="../images/10086.jpg" width="560px"</td></tr>     
                                    
                                    
                                    
                                    
                                    
                                    
                                    
                                    
                                    
                               
                                    </table>
                                </ItemTemplate>
                            </asp:DataList>
                        </td>
                    </tr>
                </table>
                <table cellpadding="0" cellspacing="0" style="color: #000000" width="10">
                    <tr>
                        <td align="left" height="20"valign="top" style= "WORD-BREAK:   break-all;   WORD-WRAP:   break-word ">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 581px; height: 11px">
                        </td>
                    </tr>
                </table>
                当前页码为［<asp:Label ID="lblCurrentPage" runat="server" Text="1"></asp:Label>］页
                总页码［<asp:Label
                    ID="lblSumPage" runat="server" Text="0"></asp:Label>］页
                <asp:LinkButton ID="lnkBtnFirst" runat="server" Font-Underline="False" OnClick="lnkBtnFirst_Click"> 第一页 </asp:LinkButton>
                <asp:LinkButton ID="lnkBtnPrevious" runat="server" Font-Underline="False" OnClick="lnkBtnPrevious_Click"> 上一页 </asp:LinkButton>
                <asp:LinkButton ID="lnkBtnNext" runat="server" Font-Underline="False" OnClick="lnkBtnNext_Click"> 下一页 </asp:LinkButton>
                <asp:LinkButton ID="lnkBtnLast" runat="server" Font-Underline="False" OnClick="lnkBtnLast_Click"> 末一页 </asp:LinkButton></td>
        </tr>
    </table>
</asp:Content>
